<?php 
try {  
$client = new SoapClient('http://127.0.0.1:8080/services/Document?wsdl');  

$functions = $client->__getFunctions();
print_r($functions);
$types = $client->__getTypes();
print_r($types);

/*
$response = $client->findByParameters("John");
print "<br><br>";
print_r($response);

print "<br><br><pre>\n";
print "Request :\n".htmlspecialchars($client->__getLastRequest()) ."\n";
print "Response:\n".htmlspecialchars($client->__getLastResponse())."\n";
print "</pre>";
*/


unset($client);  
} catch (SoapFault $e) {  
print_r($e);  
}  
?>